package org.jeecg.modules.sggg.service.impl;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.jeecg.modules.sggg.entity.SgGuidelines;
import org.jeecg.modules.sggg.mapper.SgGuidelinesMapper;
import org.jeecg.modules.sggg.service.ISgGuidelinesService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Description: 用药指导
 * @Author: jeecg-boot
 * @Date: 2022-10-17
 * @Version: V1.0
 */
@Service
public class SgGuidelinesServiceImpl extends ServiceImpl<SgGuidelinesMapper, SgGuidelines> implements ISgGuidelinesService {

    @Autowired
    private SgGuidelinesMapper mapper;

    @Override
    public IPage<SgGuidelines> pageList(IPage<SgGuidelines> page, SgGuidelines guidelines, String roleCode, String userId) {
        return mapper.pageList(page, guidelines.getUserName(), guidelines.getPhone(),guidelines.getResponsibleAgencies(), guidelines.getIdCard(), guidelines.getSysOrgCode(), roleCode, userId);
    }
}
